home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / sun / text / ComposedCharIter.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  656 b   |  27 lines

  1. package sun.text;
  2.  
  3. import sun.text.normalizer.NormalizerImpl;
  4.  
  5. public final class ComposedCharIter {
  6.    public static final int DONE = -1;
  7.    private static int[] chars;
  8.    private static String[] decomps;
  9.    private static int decompNum;
  10.    private int curChar = -1;
  11.  
  12.    public int next() {
  13.       return this.curChar == decompNum - 1 ? -1 : chars[++this.curChar];
  14.    }
  15.  
  16.    public String decomposition() {
  17.       return decomps[this.curChar];
  18.    }
  19.  
  20.    static {
  21.       short var0 = 2000;
  22.       chars = new int[var0];
  23.       decomps = new String[var0];
  24.       decompNum = NormalizerImpl.getDecompose(chars, decomps);
  25.    }
  26. }
  27.